<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="js/vue.min.js"></script>
	</head>
	<style>
		.class1{
			background: #000;
			color: #fff;
		}
	</style>
	<body>
		<div id="app">
			<label for="r1">修改颜色</label>
			<input type="checkbox" v-model="class1" id="r1"/>
			<br />
			<div v-bind:class="{'class1':class1}">
				v-bind:class 指令
			</div>
		</div>
		<div id="app1">
			<input type="text" v-model="msg" name="" id="" value="" />
			<h1>{{msg}}</h1>
		</div>
		<script>
			new Vue({
				el:"#app",
				data:{
					class1:false
				}
			})
			
			new Vue({
				el:"#app1",
				data:{
					msg:""
				}
			})
		</script>
	</body>
</html>
